package starComponent.utils;

import java.awt.Polygon;
import java.awt.Shape;

/**
 * @author Charles Perin
 * 21 avr. 2011
 * LIMSI - INRIA Rennes
 * charles.perin@free.fr
 */
public class StringAndPolygon {
	
	private String name;
	private Polygon polygon;

	public StringAndPolygon(String name, Polygon polygon){
		this.setName(name);
		this.setPolygon(polygon);
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setPolygon(Shape shape) {
		this.polygon = (Polygon)shape;
	}

	public Polygon getPolygon() {
		return polygon;
	}
}
